package com.yt.reflect.util;

import java.io.BufferedReader;
import java.io.FileReader;

import com.yt.reflect.demo.DemoClass;

public class ReadProperties {
	
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new FileReader("src/demoClass.properties"));
		Class clazz = Class.forName(br.readLine());
		DemoClass obj = (DemoClass) clazz.newInstance();
		obj.run();
	}
}
